export const menuArr = [
  {
    icon: 'label-o',
    title: '用车申请',
    name: '/applyAdd',
    key: 1,
  },

  {
    icon: 'todo-list-o',
    title: '审批调度',
    name: '/dispatchTaskList?type=1&pageType=wait',
    key: 8,
  },
  {
    icon: 'todo-list-o',
    title: '运单管理',
    name: '/dispatchTaskList?type=1&pageType=mana',
    key: 2,
  },
  {
    icon: 'balance-list-o',
    title: '运单结算',
    name: '/dispatchBillList',
    key: 3,
  },
  {
    icon: 'logistics',
    title: '应急调度',
    name: '/applyAdd?type=fast',
    key: 4,
  },
  // 驾驶员
  {
    icon: 'records-o',
    title: '出车任务',
    name: '/allTask',
    key: 5,
  },
  {
    icon: 'list-switch',
    title: '申请记录',
    name: '/applyRecord',
    key: 6,
  },
  {
    icon: 'records-o',
    title: '所有运单',
    name: '/allTask?pageType=all',
    key: 7,
  },
];

export const dataArr: any = {
  dispatch: [
    {
      title: '待审批',
      name: '/dispatchTaskList?type=1&pageType=wait',
      dataKey: 'count_dsp',
      key: 1,
    },
    {
      title: '待调度',
      name: '/dispatchTaskList?type=2&pageType=wait',
      dataKey: 'count_ddd',
      key: 2,
    },
    {
      title: '待结算',
      name: '/dispatchBillList?type=0',
      dataKey: 'no_bill_count',
      key: 3,
    },
    {
      title: '进行中',
      name: '/dispatchTaskList?type=6&pageType=mana',
      dataKey: 'count_jxz',
      key: 4,
    },
  ],
  driver: [
    {
      title: '待开始',
      name: '/allTask?type=5&pageType=all',
      dataKey: 'pending_start',
      key: 1,
    },
    {
      title: '已完结',
      name: '/allTask?type=7&pageType=all',
      dataKey: 'completed',
      key: 2,
    },
    // {
    //   title: '待确认',
    //   name: '/allTask?type=4',
    //   dataKey: 'pending_confirmation',
    //   key: 3,
    // },
    {
      title: '进行中',
      name: '/allTask?type=6&pageType=all',
      dataKey: 'pending',
      key: 4,
    },
  ],
};
